package io.itit.ecp.admin.server.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.itit.grass.common.server.entity.BaseTenantEntity;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：能源数据
 * @Date：Create by 2023-12-05 11:48:22
 */
@Data
@ToString
@TableName("ecp_tt_energy_data")
public class EnergyDataEntity extends BaseTenantEntity {

    private static final long serialVersionUID = 1L;

    /* 数据时间 */
    private Date solidifyDate;

    /* 能源类型Id ecp_tt_energy_consumption_type 表的id */
    private String energyTypeId;

    /* 项目Id */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneProjectId;

    /* 楼栋Id */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneEdificeId;

    /* 楼层Id */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneFloorId;

    /* 空间Id */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneRoomId;

    /* 公司Id */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneCompanyId;

    /* 计量设备Id */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String meterDeviceId;

    /* 设备编号 */
    private String deviceCode;

    /* 设备名称 */
    private String deviceName;

    /* 计量类型(1:电表,2:水表,3:冷表) */
    private String meterType;

    /* 读表类型(11:光伏电表,12:储能电表,13:用电电表,21:用水水表,22:消防水表,31:用冷冷表) */
    private String readMeterType;

    /* 读表标识(1:总表,2:分表) */
    private String readMeterTag;

    /* 用途 */
    private String purpose;

    /* 读取方式(1:自动,2:人工) */
    private String readType;

    /* 读数时间 */
    private Date readTime;

    /* 读数值 */
    private BigDecimal readValue;

    /* 计量数值 */
    private BigDecimal meterValue;

    /* 碳排放(kgCO2) */
    private BigDecimal carbonEmission;

    /* 碳排放(计算过程) */
    private String carbonEmissionProcess;

    /* 标准煤(kgce) */
    private BigDecimal standardCoal;

    /* 标准煤(计算过程) */
    private String standardCoalProcess;

    /* 机构Id */
    private String deptId;

    /* 统计类型 */
    private String staticsType;

    /* 统计产品类型 ecp_tt_product_type 表的id */
    private String productTypeId;

    /* 能源分类 ecp_tt_energy_category 表的id */
    private String energyCategory;

    /* 单位 */
    private String energyTypeUnit;

    /*  测算范围 ecp_tt_carbon_emission_range 表的Id */
    private String calculationRange;

}
